package com.css.fxfzypg.modules.saresults.repository;

import com.css.fxfzypg.modules.saresults.entity.DzqhXqhBasicMapEntity;
import com.css.fxfzypg.modules.saresults.vo.SaResultsHlVo;

import java.sql.Timestamp;
import java.util.Date;
import java.util.HashMap;
import java.util.List;

public interface XqhResultsRepository {
    List<DzqhXqhBasicMapEntity> queryProjectByProjectName(String projectName);

    DzqhXqhBasicMapEntity queryDzqhXqpBasicMap(String projectId);

    void updateReason(String updateReason, String projectId);

    void updateApprovalStatus(String status,String projectId, String reviewComments, String approvalStatus, String userName, String orgName, Date approvalTime);

    void deleteXqpAsicMap(String projectId);

    void updateDzqhXqhBasicMap(DzqhXqhBasicMapEntity xqhBasicMapEntity);

    void updateOldStatus(String projectId,String updateReason);

    void saveDzqhXqhBasicMap(DzqhXqhBasicMapEntity xqhBasicMapEntity);

    HashMap<String, Object> getXqhResultsProject(DzqhXqhBasicMapEntity xqhBasicMapEntity, int page, int size,String orgId,String provinceId,String userId,String geom);

    HashMap<String, Object> getXqhResultsHl(SaResultsHlVo saResultsHlVo, int page, int size,String orgId,String provinceId,String userId,String geom);

    List<DzqhXqhBasicMapEntity> queryNotSubmitted(String userId);

    List<DzqhXqhBasicMapEntity> queryAllProject();

    void tombstoneApAsicMap(String projectId, String deleteReason);

    void updateDzqhXqhAsicMapStatus(String projectId, String deleteReason, String status);

    void approvalUserDelete(String projectId, String reviewComments, String approvalStatus, String status, String isDelete, String userName, String orgName, Timestamp currentTimestamp);

    void deleteDzqhXqAsicMap(String projectId, String deleteReason);

    void auditFailed(String status, String projectId, String reviewComments, String approvalStatus, String userName, String orgName, Timestamp currentTimestamp);

    void updateStatus(DzqhXqhBasicMapEntity entity, String projectId);

    DzqhXqhBasicMapEntity queryDzqhXqpBasicMapByOldId(String originalDataId);
}
